import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

const routes:Array<RouteRecordRaw> = [
    {
     path: '/', 
     name:"show",
     component: () => import("../views/show.vue")   
    },
    {
        path: '/add', 
        name:"add",
        component: () => import("../views/add.vue")   
   }
]

const router=createRouter({
   history: createWebHistory(),
   routes
})

export default router;